#!/usr/bin/env python
# encoding: utf-8
"""
ANN.py

Created by Alakazam on 2008-06-11.
Copyright (c) 2008. All rights reserved.
"""

from scikits.ann import kdtree
from numpy import *

import psyco
psyco.full()

if __name__ == '__main__':
  k = kdtree(array([[0., 0], [1, 0], [1.5, 2]]))
  
  print k.knn([[0.1, 0.1]])
